package com.ruoyi.common.kkfile;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class KkFileViewServiceUrl {

    private static final Logger log = LoggerFactory.getLogger(KkFileViewServiceUrl.class);


    @Value("${kkFileView.url}")
    private String url;


    @Value("${kkFileView.port}")
    private String port;


    // 文档预览服务
    private String onlinePreview;

    @PostConstruct
    public void init() {
        onlinePreview = url + "onlinePreview?url=";// 文档预览服务,url后面跟base64加密后的url
    }

    public String getUrl() {
        return url;
    }

    public String getPort() {
        return port;
    }


    public String getOnlinePreview() {
        return onlinePreview;
    }
}
